package com.app.newcsc.fragment.my.safe;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.Nullable;

import com.app.newcsc.BR;
import com.app.newcsc.R;
import com.app.newcsc.databinding.FragmentSafeBinding;
import com.app.newcsc.utils.SpUtils;

import me.goldze.mvvmhabit.base.BaseFragment;
import me.goldze.mvvmhabit.base.BaseViewModel;

/**
 * @author: woking
 * @date: 2021/6/10
 * @description：
 */
public class SafeFragment extends BaseFragment<FragmentSafeBinding, BaseViewModel> {
    @Override
    public int initContentView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return R.layout.fragment_safe;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public void initData() {
        super.initData();
        SpUtils.put(getActivity(),"isLogin","1");
        binding.ivTitleBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                getActivity().finish();
            }
        });
        binding.setPasswordRl.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startContainerActivity(SetPasswordFragment.class.getCanonicalName());
            }
        });
    }
}
